<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('OaLeave/edit')}">
        <input type="hidden" name="id" value="{$info.id|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">请假类型</label>
            <div class="col-sm-10">
                <select name="type" class="chosen-select">
                    <option value="">请选择请假类型</option>
                    {volist name='$type_list' id='vo'}
                    <option value="{$key}" {notempty name="info['type']"}   {if condition="$info['type'] eq $key "} selected="selected" {/if}    {/notempty}>{$vo['name']}</option>
                    {/volist}
                </select>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">开始时间</label>
            <div class="col-sm-10">
                <input name="start_time" class="form-control datetimepicker" type="text" placeholder="请输入开始时间" required value="{$info.start_time}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">结束时间</label>
            <div class="col-sm-10">
                    <input name="end_time" class="form-control datetimepicker" type="text" placeholder="选择结束时间" value="{$info.end_time}"/>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">请假内容</label>
            <div class="col-sm-10">
                <textarea class="form-control" name="reason">{$info.reason}</textarea>
                <span class="help-block m-b-none"></span></div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="admin@layout/save_btn"}
            </div>
        </div>
    </form>
</div>